package com.niuwa.p2p.service.impl.fund;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.fund.CustAcctRuleDao;
import com.niuwa.p2p.entity.fund.CustAcctRule;
import com.niuwa.p2p.service.fund.ICustAcctRuleService;

@Service
public class CustAcctRuleServiceImpl  implements ICustAcctRuleService{

	@Autowired
	private CustAcctRuleDao custAcctRuleDao;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return custAcctRuleDao.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CustAcctRule record) {
		return custAcctRuleDao.insert(record);
	}

	@Override
	public int insertSelective(CustAcctRule record) {
		return custAcctRuleDao.insertSelective(record);
	}

	@Override
	public CustAcctRule selectByPrimaryKey(Long id) {
		return custAcctRuleDao.selectByPrimaryKey(id);
	}

	@Override
	public CustAcctRule selectCustRuleByPartnerNo(String partnerNo) {
		return custAcctRuleDao.selectCustRuleByPartnerNo(partnerNo);
	}

	@Override
	public int updateByPrimaryKeySelective(CustAcctRule record) {
		return custAcctRuleDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CustAcctRule record) {
		return custAcctRuleDao.updateByPrimaryKey(record);
	}

	@Override
	public CustAcctRule selectByOpenOrgCode(String openOrgCode) {
		return custAcctRuleDao.selectByOpenOrgCode(openOrgCode);
	}
   
}
